import { View } from "../../../mvc/core/View";
import { DramaLatteryDesPart } from "./DramaLatteryDesPart";
import { DramaLotteryConfig } from "../../resource/DramaLotteryConfig";
import { GScrollPane } from "../../../../com/mui/controls/GScrollPane";
import { ScrollPolicy } from "../../../../fl/controls/ScrollPolicy";
//class DramaLotteryPrePanel
    
    export  class DramaLotteryPrePanel extends View
    {
        constructor()
        {
            super();
            this.initView();
            return;
        }

        /* internal  */initView(): void
        {
            this._sp = new Object /* flash.display.Sprite */();
            this._strenthSp = new DramaLatteryDesPart(1);
            this._jewelSp = new DramaLatteryDesPart(2);
            this._elseSp = new DramaLatteryDesPart(3);
            var loc1=DramaLotteryConfig.instance.getStrenShowArr();
            var loc2=DramaLotteryConfig.instance.getJewelShowArr();
            var loc3=DramaLotteryConfig.instance.getElseShowArr();
            this._strenthSp.setListArr(loc1);
            this._jewelSp.setListArr(loc2);
            this._elseSp.setListArr(loc3);
            this._strenthSp.y = 0;
            this._jewelSp.y = this._strenthSp.height;
            this._elseSp.y = this._jewelSp.y + this._jewelSp.height;
            this._sp.addChild(this._strenthSp);
            this._sp.addChild(this._jewelSp);
            this._sp.addChild(this._elseSp);
            this.addChild(this._sp);
            this._contentPane = new GScrollPane();
            this._contentPane.styleName = "GScrollPane";
            this._contentPane.verticalScrollPolicy = ScrollPolicy.OFF;
            this._contentPane.horizontalScrollPolicy = ScrollPolicy.OFF;
            this._contentPane.width = 634;
            this._contentPane.height = 442;
            this._contentPane.x = 0;
            this._contentPane.y = 0;
            this._contentPane.source = this._sp;
            this.addChild(this._contentPane);
            return;
        }

        /* internal */ /* var */_strenthSp: DramaLatteryDesPart;

        /* internal */ /* var */_jewelSp: DramaLatteryDesPart;

        /* internal */ /* var */_elseSp: DramaLatteryDesPart;

        /* internal */ /* var */_sp: Object /* flash.display.Sprite */;

        /* internal */ /* var */_contentPane: GScrollPane;
    }
